<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>字体计算</title>
    <style>
        @font-face {
            font-family: "PingFangSC-Regular-review";
            src: url("./font/c07bd9e0.woff");
        }
        .review {
            padding: 2rem;
            font: normal 24px / 36px 'PingFangSC-Regular-review';
            letter-spacing: 6px;
        }
    </style>
</head>
<body>
    <div id="review" class="review"></div>
<script>
(async function () {
    const svg = await fetch('./font/c07bd9e0.svg').then(res => res.text()).then(txt => new DOMParser().parseFromString(txt, 'text/xml'))
    let arr = []
    svg.querySelectorAll('[unicode]').forEach(el => {
        arr.push(el.getAttribute('unicode'))
    })
    console.log(arr.map(t => t.codePointAt(0)).join(','))
    document.querySelector('div').innerHTML = arr.join(' ');
})()
</script>
</body>
</html>